﻿ 

 

// ******************************************************
// 这段代码是自动生成的
// 修改里面的代码，下次生成的时候会被覆盖
// ******************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Threading.Tasks;
using Sharp.Application;
using Sharp.DataTransferObject;
using System.ServiceModel.Activation;
using Sharp.Infrastructure.Search;
using Sharp.ServiceContracts;
using Sharp.Infrastructure;
using Sharp.Infrastructure.IoC;
namespace Sharp.Services.Controllers
{
	[Authorize]
	public class PlatformServiceController : ApiController,IPlatformService
	{
		private readonly IPlatformService _impl = ServiceLocator.Instance.GetService<IPlatformService>();
		
		
		public Result SaveSubSystem(SubSystemDTO model)
		{
			 return _impl.SaveSubSystem(model);
		}
		
		
		public Result DeleteSubSystem(Guid[] ids)
		{
			 return _impl.DeleteSubSystem(ids);
		}
		
		
		public SubSystemDTO GetSubSystemInfo(Guid id)
		{
			 return _impl.GetSubSystemInfo(id);
		}
		[HttpPost]
		
		public PagedResult<Sharp.DataTransferObject.SubSystemDTO> GetSubSystemPaged(PagingFeature pf)
		{
			 return _impl.GetSubSystemPaged(pf);
		}
		
		
		public IList<Sharp.DataTransferObject.SubSystemDTO> GetSubSystems()
		{
			 return _impl.GetSubSystems();
		}
		
		[AllowAnonymous]
		public Task<Sharp.DataTransferObject.SubSystemDTO> GetSubSystemByClientId(String clientId)
		{
			 return _impl.GetSubSystemByClientId(clientId);
		}
		
		
		public Result SaveMasterData(MasterDataDTO masterData)
		{
			 return _impl.SaveMasterData(masterData);
		}
		
		
		public Result DeleteMasterData(Guid[] ids)
		{
			 return _impl.DeleteMasterData(ids);
		}
		
		
		public MasterDataDTO GetMasterDataInfo(Guid id)
		{
			 return _impl.GetMasterDataInfo(id);
		}
		
		
		public IList<Sharp.DataTransferObject.MasterDataSimpleDTO> GetMasterData()
		{
			 return _impl.GetMasterData();
		}
		
		
		public IList<Sharp.DataTransferObject.MasterDataSimpleDTO> GetMasterDataByCategory(String category)
		{
			 return _impl.GetMasterDataByCategory(category);
		}
		
		
		public IList<Sharp.DataTransferObject.MasterDataDTO> GetProvinceData()
		{
			 return _impl.GetProvinceData();
		}
		
		
		public String Code2Text(String code)
		{
			 return _impl.Code2Text(code);
		}
		
		
		public IList<Sharp.DataTransferObject.MasterDataCategoryDTO> GetMasterDataSort()
		{
			 return _impl.GetMasterDataSort();
		}
		[HttpPost]
		
		public PagedResult<Sharp.DataTransferObject.MasterDataDTO> MasterDataGetPaged(PagingFeature pf)
		{
			 return _impl.MasterDataGetPaged(pf);
		}
		
		
		public Result SaveMasterDataCategory(MasterDataCategoryDTO masterDataCategory)
		{
			 return _impl.SaveMasterDataCategory(masterDataCategory);
		}
		
		
		public Result DeleteMasterDataCategory(Int32[] ids)
		{
			 return _impl.DeleteMasterDataCategory(ids);
		}
		
		
		public MasterDataCategoryDTO GetMasterDataCategoryInfo(Int32 id)
		{
			 return _impl.GetMasterDataCategoryInfo(id);
		}
		
		
		public IList<Sharp.DataTransferObject.MasterDataCategoryDTO> GetMasterDataCategory()
		{
			 return _impl.GetMasterDataCategory();
		}
		
		
		public Result SaveOAuthConfig(OAuthConfigDTO model)
		{
			 return _impl.SaveOAuthConfig(model);
		}
		
		
		public Result DeleteOAuthConfig(Guid[] ids)
		{
			 return _impl.DeleteOAuthConfig(ids);
		}
		
		
		public OAuthConfigDTO GetOAuthConfigInfo(Guid id)
		{
			 return _impl.GetOAuthConfigInfo(id);
		}
		[HttpPost]
		
		public PagedResult<Sharp.DataTransferObject.OAuthConfigDTO> GetOAuthConfigPaged(PagingFeature pf)
		{
			 return _impl.GetOAuthConfigPaged(pf);
		}
		
		[AllowAnonymous]
		public IList<Sharp.DataTransferObject.OAuthConfigDTO> GetOAuthConfigs()
		{
			 return _impl.GetOAuthConfigs();
		}
		
		
		public OAuthConfigDTO GetOAuthConfigByClientId(String clientId)
		{
			 return _impl.GetOAuthConfigByClientId(clientId);
		}
		/// <summary>
        /// 为客户端ajax跨域请求必须的方法
        /// </summary>
        /// <returns></returns>
        public string Options()
        {
            // HTTP 200 response with empty body
            return null;
        }
	}
}